/*
 * ApplyTemplates.java
 *
 * Created on 20 aprile 2004, 0.17
 */

package net.ermannofranco.xml.style;

import net.ermannofranco.xml.Tag;

/**
 * 
 * @author ermanno (ermanno.franco@gmail.com)
 */
public class ApplyTemplates extends StyleTag {

	private static final long serialVersionUID = -2371084754400664569L;

	/**
	 * Creates a new instance of ApplyTemplates Protetto
	 * 
	 * @param level
	 *            contatore di livello per indentazione, gestito automaticamente
	 * @param container
	 *            tag contenitore, automatico
	 */
	protected ApplyTemplates(int level, Tag container) {
		super("apply-templates", level, container);
	}

	/**
	 * @param select
	 * @return autoref
	 */
	public ApplyTemplates setSelect(String select) {
		addAttr("select", select);
		return this;
	}

	/**
	 * @param select
	 * @return oggetto Sort
	 */
	public Sort addSort(String select) {
		Sort t;
		add(t = new Sort(getLevel() + 1, this).setSelect(select));
		return t;
	}

	/**
	 * @return oggetto WithParam
	 */
	public WithParam addWithParam() {
		WithParam t;
		add(t = new WithParam(getLevel() + 1, this));
		return t;
	}
}
